<?php
require_once(realpath(dirname(__FILE__)) . "/Baseobj.class.php");


class Smtpconfig extends Baseobj{
	
	var $id;
	var $serveur;
	var $port;
	var $username;
	var $password;
	var $secure;
	var $active;
	
	var $table = "smtpconfig";
	var $bddvars = array("id","serveur","port","username","password","secure","active");
	
	function __construct($id = 0){
		parent::__construct();

		if($id > 0)
		  $this->charger($id);
	}
	
	function charger($id){
		return $this->getVars("select * from $this->table where id=$id");
	}	
}
?>